Skip to content

Conversation

@DirkBaumeister
Copy link

As mentioned here: #76 currently, if the security release is used (and the release version of the device ends with a 1 instead of a 0) the info screen for new releases always stays at the top and does not scroll to the currently installed release, like it did before.

With this pull request this is fixed the following way:
If by the exact version of the device no entry in the atom rss feed title can be found, a second matching for the index of the current release version takes place. But this time, the last character of the release number is replaced by the next higher digit (0 gets a 1, 2 gets a 3, 4 gets a 5 and so on for any possible "standard" and security release combo).

This way, even if there are multiple releases in one day (Which would result in releases with 02, 04, 06 etc at the end for "standard" releases and its corresponding security releases 01, 03, 05, 07 etc...), it would still match this releases first before it even tries to find it by a security release version number.

Copy link
Member

@soupslurpr soupslurpr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good, just needs some minor refactors!

@DirkBaumeister
Copy link
Author

Looks pretty good, just needs some minor refactors!

Thank you very much for your feedback! I have optimized my code and hope that it is fine now :)

Copy link
Member

@soupslurpr soupslurpr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants